//
//  BackSuccessViewController.m
//  Manage
//
//  Created by 杨康 on 2018/1/11.
//  Copyright © 2018年 杨康. All rights reserved.
//

#import "BackSuccessViewController.h"

@interface BackSuccessViewController ()

@end

@implementation BackSuccessViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.navigationItem.title=@"归还成功";
    
    UIImageView *successImg=[[UIImageView alloc]initWithImage:[UIImage imageNamed:@"归还成功"]];
    [self.view addSubview:successImg];
    [successImg mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.mas_equalTo(self.view);
        make.top.mas_equalTo(TOP_HEIGHT+50);
    }];
    
    UILabel *successLab=[SingLeton myLabel:[UIColor colorWithHexString:@"09be00"] andTitle:@"归还成功" andFont:20];
    [self.view addSubview:successLab];
    [successLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.mas_equalTo(self.view);
        make.top.mas_equalTo(successImg.mas_bottom).mas_offset(15);
    }];
    
    
    UILabel *timeLab=[SingLeton myLabel:[UIColor color6] andTitle:@"您的按月套餐剩余13天" andFont:14];
    [self.view addSubview:timeLab];
    [timeLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.mas_equalTo(self.view);
        make.top.mas_equalTo(successLab.mas_bottom).mas_offset(12);
    }];
    
    UILabel *lineLab=[[UILabel alloc]init];
    [self.view addSubview:lineLab];
    [lineLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.mas_equalTo(self.view);
        make.top.mas_equalTo(timeLab.mas_bottom).mas_offset(40);
        make.size.mas_equalTo(CGSizeMake(0.5, 22));
    }];
    lineLab.backgroundColor=[UIColor colorD];
    
    
    UILabel *mouthLab=[SingLeton myLabel:[UIColor colorWithHexString:@"222222"] andTitle:@"本月租赁23次" andFont:16];
    [self.view addSubview:mouthLab];
    [mouthLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.mas_equalTo(lineLab.mas_left).mas_offset(-20);
        make.centerY.mas_equalTo(lineLab);
    }];
    
    UILabel *totalLab=[SingLeton myLabel:[UIColor colorWithHexString:@"222222"] andTitle:@"累计租赁87次" andFont:16];
    [self.view addSubview:totalLab];
    [totalLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(lineLab.mas_right).mas_offset(20);
        make.centerY.mas_equalTo(lineLab);
    }];
    
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
